/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.punish.ucase.punishinform.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * 描述:  case_collective_discuss 对应的DTO类.<br>
 *
 * @author framework generator
 * @date 2022年02月17日
 */
@Data
public class CaseCollectiveDiscussUserVo<toString> {
    /**
     * 用户id（外部人员无userId）
     */
    private String userId;
    /**
     * 案件名称
     */
    private String userName;
    /**
     * 手机号
     */
    private String tel;
    /**
     * 是否外部人员1:内部选择,2手动输入
     */
    private String userType;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 1位默认选中状态
     */
    private String selected;

    @Override
    public boolean equals(Object target) {
        if (this == target) {
            return true;
        }
        if (target == null || getClass() != target.getClass()) {
            return false;
        }
        CaseCollectiveDiscussUserVo student = (CaseCollectiveDiscussUserVo) target;
        if(StringUtils.isBlank(student.getUserId()) || StringUtils.isBlank(this.getUserId())){
            return false;
        }
        return student.getUserId().equals(this.getUserId());
    }
    @Override
    public int hashCode() {
        return Objects.hash(userId);
    }

    @Override
    public String toString() {
        return "CaseCollectiveDiscussUserVo{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", tel='" + tel + '\'' +
                ", userType='" + userType + '\'' +
                '}';
    }
}